﻿using System;
using System.Data;
using System.Configuration;
using System.Web;

using Com.Yoeso.ORM.Common;
using Com.Yoeso.ORM.Framework;
using Com.Yoeso.ORM;

namespace Com.Yoeso.Entity
{               
    [TableName("calendar_event")]
    public class CalendarEvent
    {
        public static CalendarEvent Retrieve(String id)
        {
            Key key = new Key(typeof(CalendarEvent), true, "ID", id);
            CalendarEvent data = null;
            try
            {
                data = SqlProvider.ORMBroker.RetrieveInstance(typeof(CalendarEvent), key) as CalendarEvent;
            }
            catch { }
            return data;
        }

        private string id;
        [TableColumn("ID", true), PrimaryKey(AutoGenerated = false)]
        public string ID
        {
            get { return id; }
            set { id = value; }
        }

        private string memberid;
        [TableColumn("MemberID", true)]
        public string MemberID
        {
            get { return memberid; }
            set { memberid = value; }
        }

        private string classid;
        [TableColumn("ClassID", true)]
        public string ClassID
        {
            get { return classid; }
            set { classid = value; }
        }

        private string topic;
        [TableColumn("Topic", true)]
        public string Topic
        {
            get { return topic; }
            set { topic = value; }
        }

        private string place;
        [TableColumn("Place", true)]
        public string Place
        {
            get { return place; }
            set { place = value; }
        }

        private string desc;
        [TableColumn("Description", true)]
        public string Desc
        {
            get { return desc; }
            set { desc = value; }
        }

        private bool isfullday;
        [TableColumn("IsFullDay", true)]
        public bool IsFullDay
        {
            get { return isfullday; }
            set { isfullday = value; }
        }

        private bool islunar;
        [TableColumn("IsLunar", true)]
        public bool IsLunar
        {
            get { return islunar; }
            set { islunar = value; }
        }

        private DateTime startdatetime;
        [TableColumn("StartDateTime", true)]
        public DateTime StartDateTime
        {
            get { return startdatetime; }
            set { startdatetime = value; }
        }

        private DateTime enddatetime;
        [TableColumn("EndDateTime", true)]
        public DateTime EndDateTime
        {
            get { return enddatetime; }
            set { enddatetime = value; }
        }

        private int repeattype;
        [TableColumn("RepeatType", true)]
        public int RepeatType
        {
            get { return repeattype; }
            set { repeattype = value; }
        }

        private int endtype;
        [TableColumn("EndType", true)]
        public int EndType
        {
            get { return endtype; }
            set { endtype = value; }
        }

        private string endtypevalue;
        [TableColumn("EndTypeValue", true)]
        public string EndTypeValue
        {
            get { return endtypevalue; }
            set { endtypevalue = value; }
        }

        private int remindtype;
        [TableColumn("RemindType", true)]
        public int RemindType
        {
            get { return remindtype; }
            set { remindtype = value; }
        }

        private bool isdelete;
        [TableColumn("IsDelete", true)]
        public bool IsDelete
        {
            get { return isdelete; }
            set { isdelete = value; }
        }

        private Int64 createtime;
        [TableColumn("CreateTime", true)]
        public Int64 CreateTime
        {
            get { return createtime; }
            set { createtime = value; }
        }

        private Int64 rowtime;
        [TableColumn("RowTime", true)]
        public Int64 RowTime
        {
            get { return rowtime; }
            set { rowtime = value; }
        }
    }
}
